﻿<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,minimum-scale=1">
<title>色拉新零售-找到一群人，做成一件事儿.</title>
    <link rel="stylesheet" type="text/css" href="../css/base.css?v2.0.11">
    <link rel="stylesheet" type="text/css" href="../css/sctouch_common.css?v2.0.11">
    <link rel="stylesheet" type="text/css" href="../css/mui/mui.css?v2.0.11">
    <link rel="stylesheet" type="text/css" href="../css/index.css?v2.0.11">
    <link rel="stylesheet" type="text/css" href="../css/sctouch_member.css?v2.0.11" >
    <link rel="stylesheet" type="text/css" href="../css/sctouch_cart.css?v2.0.11" >
    <style>
        body {
            background-color: #ffffff !important;
        }
        header {
            position: absolute;
            left: 0;
            width: 2rem;
            background: transparent;
            border-bottom: 0;
        }
        header .header-l i {
            color: #FFF;
        }
    </style>
</head>
<body>
<header>
    <div class="header-wrap">
        <div class="header-l"> <a > </a> </div>
    </div>
</header>
<div class="adv_list" id="main-container1"></div>
<div class="sctouch-main-layout mb20 mt-1 mui-hidden">
    <div class="item-goods">
        <div class="goods-list"></div>
    </div>
</div>
<div class="sctouch-cart-bottom mui-text-center btn-share-register">
    <div class="btn mui-btn-red open-url sctouch-register-bottom">
        马上注册
    </div>
</div>
<footer id="footer"></footer>
<script type="text/html" id="adv_list">
    <div class="swipe-wrap">
        <% for (var i in adv_list) { %>
        <% if (adv_list[i].adv_code) { %>
        <div class="item">
            <span data-url="<%= adv_list[i].adv_link %>">
                <img src="<%= adv_list[i].adv_code %>" alt="">
            </span>
        </div>
        <% } %>
        <% } %>

    </div>
    <div class="swipe-nav">
        <% for (var i in adv_list) { %>
        <em class="<%if(i==0){%>active<%}%>"></em>
        <% } %>
    </div>
</script>
<script type="text/html" id="goods_list">
    <% var member_type = result.member_type; %>
    <% var goods_list = result.goods_list; %>
    <% if (goods_list.length) { %>
    <% for (var i in goods_list) { %>
    <div class="item">
        <div class="block-area">
            <div class="goods_image open-url" data-url="../mall/product_detail.html?time_goods_id=<%= goods_list[i].time_goods_id%>">
                <% if (goods_list[i].promotion_type_image) { %>
                <div class="type_icon"><img src="<%= goods_list[i].promotion_type_image %>" class="left-top"></div>
                <% } %>
                <img src="<%= goods_list[i].goods_image_url %>">
                <!--<div class="turn-free"><%= goods_list[i].shipping_free %></div>-->
            </div>
        </div>
        <div class="intro-box">
            <div class="block-area">
                <div class="desc-box">
                    <p class="goods_name open-url" data-url="../mall/product_detail.html?time_goods_id=<%= goods_list[i].time_goods_id%>">
                        <%if (goods_list[i].shipping_free){%>
                        <span style="color: <%=goods_list[i].shipping_free_color%>;background-color: #ffffff;height:1rem;padding: 0">【<%=goods_list[i].shipping_free%>】</span>
                        <%}%>
                        <%= goods_list[i].goods_name %></p>
                    <p class="goods_intro open-url" data-url="../mall/product_detail.html?time_goods_id=<%= goods_list[i].time_goods_id%>"><%= goods_list[i].goods_advword %></p>
                </div>
                <div class="number-box">
                    <span class="sale-box">
                        <span class="only-leave">
                            <span class="snap-up" style="width: <%=goods_list[i].sale_percentage%>%;">
                                <% if(goods_list[i].goods_storage == 0) {%>
                                已售罄
                                <% } else {%>
                                  已抢 <%= goods_list[i].goods_salenum %>
                                 <% } %>
                            </span>
                            <span><%= goods_list[i].goods_sale_rate %></span>
                        </span>
                    </span>
                    <%if (goods_list[i].clearance_way != ''){%>
                    <span class="clearance_way clearance_way-<%=goods_list[i].clearance_way%>">&nbsp;<%= goods_list[i].clearance_way_format %></span>
                    <% } %>
                    <!-- <span class="js"> -->
                </div>
            </div>
            <div class="block-area price_info">
                <div class="price-box">
                    &nbsp;
                    <div class="price-fixed">
                        <p>
                            <%if(member_type > 1){%>
                            <span class="now_price font-lg">￥<%= goods_list[i].goods_marketprice %></span>
                            <%}else{%>
                            <span class="now_price font-lg">￥<%= goods_list[i].goods_price %></span>
                            <span class="font-sm-2">市场价￥<%= goods_list[i].goods_marketprice %></span>
                            <%}%>
                        </p>
                        <%if(member_type < 3){%>
                        <p class="btn-box goods-subscribe site-subscribe" data-goods_id="<%= goods_list[i].goods_id %>" data-time_goods_id="<%= goods_list[i].time_goods_id %>" <%if(goods_list[i].subscribe){%> style="display:none" <%} else{%>style="display:block" <%  } %>>

                        <span class="goods-subscribe-btn <%if(goods_list[i].is_fixed_price == 1){%>fixed_price <%}%>">
                                <%if(goods_list[i].is_fixed_price == 1){%>
                                <span >
                                        限价商品
                                    </span>
                                <%}else{%>
                                 <span>
                                        设置销售价格&nbsp;&nbsp;>
                                    </span>
                                <%}%>

                                </span>
                        </p>
                        <p class="btn-box goods-subscribe" data-goods_id="<%= goods_list[i].goods_id %>" data-time_goods_id="<%= goods_list[i].time_goods_id %>" <%if(goods_list[i].subscribe){%> style="display:block" <%} else{%>style="display:none" <%  } %>>
                        <% if (goods_list[i].is_fixed_price == 1) { %>
                        <span class="goods-subscribe-btn fixed_price">
                                    赚
                                    <span class="custom-price-profit">
                                    <%=goods_list[i].subscribe ? goods_list[i].subscribe.goods_profit_format : ''%>
                                    </span>
                                </span>
                        <%}else{%>
                        <span class="goods-btn">销售价<span class="custom-price" >
                                        <%=goods_list[i].subscribe ? goods_list[i].subscribe.goods_custom_price_format : 0%>
                                    </span>
                                </span>
                        <span class="goods-btn">
                                    赚
                                    <span class="custom-price-profit">
                                    <%=goods_list[i].subscribe ? goods_list[i].subscribe.goods_profit_format : ''%>
                                    </span>
                                </span>

                        <% } %>

                        </p>
                        <%}%>
                    </div>
                </div>
                <div class="btn-box">
                    <%if(member_type < 3){%>
                    <a  class="goods-btn red font-sm-1 goods-subscribe <% if (goods_list[i].subscribe) { %>favorate<% } %> <% if (goods_list[i].is_fixed_price == 1) { %>fixed_price_border<% } %> " data-goods_id="<%= goods_list[i].goods_id %>" data-time_goods_id="<%= goods_list[i].time_goods_id %>" >
                        <p class="desc"><% if (goods_list[i].subscribe) { %>已认购<%} else {%>认购<% } %></p>
                    </a>

                    <% if (goods_list[i].time_begin >= goods_list[i].date_time && goods_list[i].date_time >= goods_list[i].time) { %>
                    <span class="goods-btn red-full font-sm-1 goods-prompt-add" data-goods_id="<%= goods_list[i].goods_id %>" data-time_goods_id="<%= goods_list[i].time_goods_id %>" data-type="2"><%=goods_list[i].on_sale_notice_format%></span>
                    <% } else { %>
                    <span class="goods-btn red-full font-sm-1 add-to-cart <%if(goods_list[i].is_fixed_price == 1){%>fixed_price<%}%>" data-goods_id="<%= goods_list[i].goods_id %>" data-time_goods_id="<%= goods_list[i].time_goods_id %>">自购</span>
                    <% } %>

                    <% }else{%>
                    <span class="goods-btn red-full font-sm-1 add-to-cart btn-full" data-goods_id="<%= goods_list[i].goods_id %>" data-time_goods_id="<%= goods_list[i].time_goods_id %>">自购</span>
                    <%}%>
                </div>
            </div>
        </div>
    </div>
    <% } %>
    <% } %>
</script>
</body>

<script type="text/javascript" src="../js/mui/mui.js?v2.0.11" ></script>
<script type="text/javascript" src="../js/config.js?v2.0.11"></script><script type="text/javascript" src="../js/base64.js?v2.0.11"></script>
<script type="text/javascript" src="../js/zepto.min.js?v2.0.11" ></script>
<script type="text/javascript" src="../js/template.js?v2.0.11"></script>
<script type="text/javascript" src="../js/common.js?v2.0.11"></script>
<script type="text/javascript" src="../js/swipe.js?v2.0.11"></script>
<script type="text/javascript" src="js/share_register.js?v2.0.11"></script>
<!--<script type="text/javascript" src="lang/product_list.js?v2.0.11"></script>-->
<script type="text/javascript" src="../js/lang.js?v2.0.11"></script>
</html>
